package com.winhxd.b2c.common.domain.product.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

@Data
@ApiModel("商品SPU信息")
public class ProductSpu {

    @ApiModelProperty("主键id")
    private Long id;

    @ApiModelProperty("商品货号")
    private String spuCode;

    @ApiModelProperty("品牌编码")
    private Long brandId;

    @ApiModelProperty("品牌名称")
    private String brandName;

    @ApiModelProperty("商品名称")
    private String spuName;

    @ApiModelProperty("商品副标题")
    private String subheadName;

    @ApiModelProperty("初始销量")
    private Long initSalesVolume;

    @ApiModelProperty("真实销量")
    private Long realSalesVolume;

    @ApiModelProperty("指导价格")
    private BigDecimal guidePrice;

    @ApiModelProperty("库存(sku汇总信息)")
    private Long stock;

    @ApiModelProperty("状态(1未删除,0已删除)")
    private Integer status;

    @ApiModelProperty("上下架状态(1上架，0下架)")
    private Integer saleStatus;

    @ApiModelProperty("创建人")
    private String createdBy;

    @ApiModelProperty("创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss" )
    private Date createdTime;

    @ApiModelProperty("修改人")
    private String modifiedBy;

    @ApiModelProperty("修改时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss" )
    private Date modifiedTime;

    @ApiModelProperty("上架时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss" )
    private Date saleTime;


}
